<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <canvas id="mc" style="width: 500px; height: 400px; border: 1px solid #c3c3c3;"></canvas>
    <script>
        const ctx = document.getElementById('mc').getContext('2d')
        ctx.fillstyle = '#ff0000';
        ctx.fillRext(0,0,120,110);
        ctx.moveTo(0,0);
        ctx.lineTo(300,200);
        ctx.stroke()
    </script>
</body>
</html>